// GraphOptions.cpp : implementation file
//

#include "stdafx.h"
#include "GraphView.h"
#include "GraphOptions.h"


// CGraphOptions dialog

IMPLEMENT_DYNAMIC(CGraphOptions, CDialog)

CGraphOptions::CGraphOptions(CWnd* pParent /*=NULL*/)
	: CDialog(CGraphOptions::IDD, pParent)
    , _strVertices(_T(""))
    , _strEdges(_T(""))
{

}

CGraphOptions::~CGraphOptions()
{
}

void CGraphOptions::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    DDX_Text(pDX, IDC_EDIT1, _strVertices);
    DDX_Text(pDX, IDC_EDIT2, _strEdges);
}


BEGIN_MESSAGE_MAP(CGraphOptions, CDialog)
    ON_BN_CLICKED(IDOK, &CGraphOptions::OnBnClickedOk)
END_MESSAGE_MAP()


// CGraphOptions message handlers
void CGraphOptions::OnBnClickedOk()
{
    UpdateData();
    CDialog::OnOK();
}